package cn.lhn.ridersclub.util;

import org.junit.jupiter.api.Test;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Random;

public class IdUtil {

    private static final Random random = new Random();

    public static Long createId() {

        SimpleDateFormat format = new SimpleDateFormat("ddMMyyHHmm");
        String id = format.format(System.currentTimeMillis()) + random.nextInt(100);
        return Long.parseLong(id);
    }
}
